package middleware

import (
	"github.com/gin-gonic/gin"
	"sgo/scontext"
)

func Use(sc *scontext.SgoContext, engine *gin.Engine) {
	engine.Use(AuthMiddleware(sc), CorsMiddleware(sc))
}
